﻿function GetQuestionByTypeClass(iSolve, iType, str) {
    if (str == "type") {
        iSolve = $('#hid_questionsolve').val();
    }
    else if (str == "Solve") {
        iType = $('#hid_questiontype').val();
    }
    
    window.location.href = "ep_question_index.aspx?tid=" + iType + "&sid=" + iSolve;
}


function GetState(isolve, itype) {
    $('#type_' + itype).css("color", "black");
    if (isolve == 0) {
        $('#solvQuestion').html("未解决问题");
        $('#solve_0').attr("class", "lnav lnav1 lnav1click");
    }
    else if (isolve == 1) {
        $('#solve_1').attr("class", "lnav lnav0 lnav0click");
    }

    //提问类别
    //$('#cp_queset1').attr("href", "ep_question_userques.aspx?cp=1&tid="+itype);
}


//获得类别名称
function GetType(itype) {
    var strReturn = '';
    switch (itype) {
        case "1":
            strReturn = "开盘早知道";
            break;
        case "2":
            strReturn = "资金全景";
            break;
        case "3":
            strReturn = "板块监测";
            break;
        case "4":
            strReturn = "黑马雷达";
            break;
        case "5":
            strReturn = "资金雷达";
            break;
        case "6":
            strReturn = "涨停雷达";
            break;
        case "7":
            strReturn = "机构动向监测";
            break;
        case "8":
            strReturn = "其他";
            break;
  
    
    }
    return strReturn;
}